package com.knife.message.domain.service.impl;

import com.knife.common.utils.KnifeStringUtil;
import com.knife.message.domain.service.KnifeMessageBuilder;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author tianhao.luo@hand-china.com
 * @version 1.0
 * @date 2022年06月12日 星期日 5:18 下午
 * @description
 * @since 1.0
 */
@Component
public class DefaultKnifeMessageBuilder implements KnifeMessageBuilder {


    @Override
    public String buildMessage(String content, Map<String, String> params) {
        return KnifeStringUtil.resolveStr(params, content);
    }
}
